package cn.edu.nuc.ssm.entity;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

public class Account {
    private Integer id;

    private Integer uid;

    private String name;

    private BigDecimal remainMoney;

    private BigDecimal inMoney;

    private BigDecimal outMoney;

    private String date;

    private String accounttype;

    public Account() {
    }

    public Account(Integer uid, String name, BigDecimal remainMoney, BigDecimal inMoney, BigDecimal outMoney, String date, String accounttype) {
        this.uid = uid;
        this.name = name;
        this.remainMoney = remainMoney;
        this.inMoney = inMoney;
        this.outMoney = outMoney;
        this.date = date;
        this.accounttype = accounttype;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public BigDecimal getRemainMoney() {
        return remainMoney;
    }

    public void setRemainMoney(BigDecimal remainMoney) {
        this.remainMoney = remainMoney;
    }

    public BigDecimal getInMoney() {
        return inMoney;
    }

    public void setInMoney(BigDecimal inMoney) {
        this.inMoney = inMoney;
    }

    public BigDecimal getOutMoney() {
        return outMoney;
    }

    public void setOutMoney(BigDecimal outMoney) {
        this.outMoney = outMoney;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date == null ? null : date.trim();
    }

    public String getAccounttype() {
        return accounttype;
    }

    public void setAccounttype(String accounttype) {
        this.accounttype = accounttype == null ? null : accounttype.trim();
    }

    @Override
    public String toString() {


        return ReflectionToStringBuilder.toString(this, ToStringStyle.SIMPLE_STYLE);
    }
}